/*
 * ItemRentBO.java
 *
 * Created on July 7, 2007, 2:26 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.abbh.libcommunity.bo;
import com.abbh.libcommunity.model.Item;
import com.abbh.libcommunity.model.User;
import com.abbh.libcommunity.model.UserHoldItems;
import com.abbh.libcommunity.model.UserRentedItems;


/**
 *
 * @author PAUL
 */
public interface ItemRentBO {
    public abstract  void rentItem(User user,Item item);
    
    
    /*
     *  User renews a book or an item by entering item id in text field and hids renew
     *  Find the ItemRented object from the database using this item_id
     *  Update the object set new due date and increment renew field
     *  Save the object again
     */
    public abstract  void renewItem(Integer itemId);
    
    public abstract  void returnItem(UserHoldItems item);
    
    public abstract UserRentedItems findByItemId(Integer id);
    
}
